﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using System.Collections.Generic;
using control.Biz;

namespace TrangSucShop
{
    public partial class find : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["Loai"]!=null&&Request.QueryString["SP"]!=null)
            {
                string loai = Request.QueryString["Loai"];
                string sp = Request.QueryString["SP"];
                int giatu = Convert.ToInt32(Request.QueryString["GT"]);
                int giaden = Convert.ToInt32(Request.QueryString["GD"]);
                List<BizSanPham> sanphams = new List<BizSanPham>();
                sanphams = BizSanPham.Find(loai, sp,giatu,giaden);
                categories1.Data = sanphams;
                categories1.Tieude = "Kết quả tìm kiếm";
            }
        }
    }
}
